package cn.tiasen.helloworld;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.GridView;

import java.util.List;

import cn.tiasen.helloworld.adapters.MobileGuardHomeAdapter;
import cn.tiasen.helloworld.utils.Utils;
import cn.tiasen.helloworld.vo.AppInfo;

public class MobileGuardActivity extends AppCompatActivity {

    private GridView gv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mobile_guard);

        gv = findViewById(R.id.gv);

        List<AppInfo> appInfos = Utils.getAllApps(this);

        gv.setAdapter(new MobileGuardHomeAdapter(this,appInfos));

    }
}
